docs: Tell pandoc we need Docbook4
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 20:53:44 +0000 (16:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 20:53:44 +0000 (16:53 -0400)
gtk-doc assumes Docbook4, with <ulink> and so on.
Without this, all the links in markdown are converted
to <link xlink:href=...> and then lost in the docbook->html
conversion.

docs/reference/gtk/gtk-markdown-to-docbook

index a278b8b583ffba7118c6f70e270682d9ec2eae47..d25e6d52eade0203254bf975d24d2c5b998c858e 100755 (executable)
@@ -180,7 +180,7 @@ def ConvertToDocbook(infile, outfile):
     else:
         division='chapter'
     input_format = "markdown" + "".join(MarkdownExtensions)
-    output_format = "docbook"
+    output_format = "docbook4"
     subprocess.check_call(["pandoc", infile, "-o", outfile,
                            "--from=" + input_format,
                            "--to=" + output_format,